let http = require('http');


/**
 * res 是属于http.IncomingMessage
 *
 * */
http.get('http://mixer.video.iqiyi.com/jp/mixin/videos/891559000', (res) => {

    var data = '';
    res.on('data', function (chunk) {
        data += chunk;
    });

    res.on('end', function () {
        console.log(data);
    });
}).end();


// let url = require('url');
// let queryString = require('querystring');
//
// let urlObject = url.parse("http://api-t.iqiyi.com/qx_api/comment/get_video_comments?aid=15988974&albumid=0&categoryid=1&cb=fnsucc&escape=true&is_video_page=true&need_reply=true&need_subject=true&need_total=1&page=1&page_size=10&page_size_reply=3&qitan_comment_type=1&qitancallback=fnsucc&qitanid=15988974&qypid=01010011010000000000&reply_sort=hot&sort=hot");
//
// let queryObj = queryString.parse(urlObject.query);
//
//
// console.log(JSON.stringify(queryObj));




